<ion-view view-title="子计划">
  <ion-nav-buttons side="right">
    <button class="button button-icon icon ion-plus" ng-click="onNewChildPlan()"></button>
  </ion-nav-buttons>
  <ion-content>

    <ion-list>

      <ion-item class="item-divider"></ion-item>
      <ion-item class="item item-icon-left item-icon-right" ng-click="onNewChildPlan()">
        <i class="icon ion-ios-plus-outline"></i>
        新的子计划
        <i class="icon ion-chevron-right icon-accessory"></i>
      </ion-item>
      <ion-item class="item-divider"></ion-item>

      <ion-item class="item-icon-right" collection-repeat="item in plans" ng-click="onEditChildPlan(item)">
        <i class="icon ion-chevron-right icon-accessory"></i>
        {{item.name}}

        <ion-option-button class="button-assertive" ng-click="onDeleteChildPlan(item)">删除</ion-option-button>
      </ion-item>

    </ion-list>
  </ion-content>
</ion-view>
